<!-- 子组件 -->
<template>
    <div>
        <h3>---Child---</h3>
        <input :value="value" @input="inputFn" type="text">
        <hr>
        <Son></Son>
    </div>
</template>

<script>
import Son from "@/components/Son.vue";

export default {
    name: "Child",
    props: {
        value: String
    },
    components: {
        Son
    },

    methods: {
        inputFn(e) {
            this.$emit('input',e.target.value)
        },
    }

}
</script>